package cz.jm.web.manhunter.client.services;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

import cz.jm.web.manhunter.shared.User;


@RemoteServiceRelativePath("userData")
public interface UserDataService extends RemoteService {
	
	User authenticateUser(String userToken) throws IllegalArgumentException;
	
	User authenticateUser(String userName, String password)  throws IllegalArgumentException;
	
	User registerUser(User user, String password) throws IllegalArgumentException;
	
	void confirmUserRegistration(long userId, String registrationKey) throws IllegalArgumentException;
	
}
